/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package paymentgateway;

import java.net.*;
import java.io.*;
import java.util.*;
import java.sql.*;

/**
 *
 * @author dhaval
 */
/**
 * This class contains four methods setCardHolderName(),getCardHolderName() and
 * setCreditCard(),getCreditCard() The name entered by the user is set in the
 * EchoServer and then get in the DBconnect The credit card number entered by
 * the user is set1 in the EchoServer and get1 in the DBconnect
 *
 * @author dhaval
 */
public class PaymentGateway {

//    private String clientString = "";
    private String creditCard;
    private String cardHolderName = "";
    private double chargeAmount;

    public void setCardHolderName(String name) //Name
    {
        cardHolderName = name;
    }

    public String getCardHolderName() //Name
    {
        return cardHolderName;
    }

    public void setCreditCard(String ccNum) //Credit Card Number
    {
        creditCard = ccNum;
    }

    public String getCreditCard() //Credit card Number
    {
        return creditCard;
    }
    
    public double getChargeAmount() {
        return chargeAmount;
    }
    
    public void setChargeAmount(double newBalance) {
        chargeAmount = newBalance;
    }
}
